package com.flower8.dao;

import com.flower8.dto.CreditLinkDto;
import com.flower8.model.CreditLink;
import com.flower8.utils.PageData;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description: 银行链接Dao
 * @Author: tanglin
 * @Date: 2019/09/25 15:44
 * @Version: 1.0
 */
@Repository
public interface CreditLinkDao {
    /**
     * 查询银行连接列表
     * @param pd
     * @return
     * @throws Exception
     */
    List<CreditLinkDto> getCreditLinkList(PageData pd) throws  Exception;

    /**
     * 查询银行连接列表数量
     * @param pd
     * @return
     * @throws Exception
     */
    int getCreditLinkListCount(PageData pd) throws  Exception;

    /**
     * 根据id查询银行连接
     * @param id
     * @return
     * @throws Exception
     */
    CreditLinkDto getCreditLinkById(long id) throws  Exception;

    /**
     * 更新银行连接
     * @param creditLink
     * @throws Exception
     */
    void updateCreditLink(CreditLink creditLink)throws  Exception;

    /**
     * 删除银行连接
     * @param id
     * @throws Exception
     */
    void deleteCreditLink(long id) throws  Exception;

    /**
     * 新增银行连接
     * @param creditLink
     * @throws Exception
     */
    void addCreditLink(CreditLink creditLink)throws  Exception;
}
